<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>


<%
	String companyPersonRoleId = (String)request.getAttribute("companyPersonRoleId");
	String domainId = request.getParameter("domainId");
%>

<jsp:useBean id="companyPersonRoleForm" 
	class="org.vectrics.company.web.struts.CompanyPersonRoleForm" scope="request"/>

<vectrics:errors debug="false"/>

<html:form action="/admin/company/person/role/save" method="POST"  focus="name">
	<html:hidden property="companyId"/>
	<html:hidden property="domainId"/>
	<html:hidden property="personId"/>
	<html:hidden property="companyPersonRoleId"/>
	<html:hidden property="roleType"/>
    <html:hidden property="title"  />
    <html:hidden property="dateStart" />
    <html:hidden property="dateEnd" />
	<table>
		<tr>
			<td><font>Company:</font></td><td><font><bean:write name="companyPersonRoleForm" property="companyName"/></font></td>
		</tr>
		<tr>
			<td><font>Person:</font></td><td><font><bean:write name="companyPersonRoleForm" property="personName"/></font></td>
		</tr>
	</table>
	<br>
	<table>
		<tr>
			<td class="formBg1" valign="top" width="150">
				<font class="formLabelClass">Membership</font>
			</td>
			<td class="formBg1" valign="top">
				<vectrics:companyGroupTypeSelection companyPersonRoleId="<%=companyPersonRoleId%>"/>
			</td>
		</tr>
		<tr>
			<td valign="TOP" align="left"></td>
			<td valign="TOP" align="left">
				<vectrics:formButton code="button.ok" phraseCode="button.ok" 
					elementId="ok.btn"
					value="submit" name="submit"/>&nbsp;
				<vectrics:formButton code="button.cancel" phraseCode="button.cancel" 
					elementId="cancel.btn"
					value="cancel" name="cancel"/>
			</td>
		</tr>
	</table>
</html:form>
